/**
 * Created by huiran on 2017/5/23.
 */
//样板
(function () {
    $('.dingzhi-select1 li').hover(function () {
        var num = $(this).index();
        $(this).addClass('red')
            .siblings().removeClass('red');
        $('.dingzhi-yangban').eq(num).addClass('display')
            .siblings('.dingzhi-yangban').removeClass('display');
    })
})();
//    标准工序轮播
(function () {
    var width = $("#marquee2 .teacher li").width(); //每个li的宽

    $('.prevss').click(function () {
        $("#marquee2 .teacher").animate({
            left: -width
        },100,function(){
            $("#marquee2 .teacher").css("left","0").children('li').first().appendTo("#marquee2 .teacher");
        })
    });
//    向右点击移动
    $('.nextss').click(function () {
        // clearInterval(timer);
        $("#marquee2 .teacher").animate({
            left: width
        },100,function(){
            $("#marquee2 .teacher").css("left","0").children('li').last().prependTo("#marquee2 .teacher");
            // timer = setInterval(jias,1000);
        })

    })
})();
//标准工序
(function () {
    $('.art-select li').hover(function () {
        var num = $(this).index();
        $(this).addClass('se-hover')
            .siblings().removeClass('se-hover');
        $('.art-none').eq(num).addClass('display')
            .siblings('.art-none').removeClass('display');
    })
})();